package com.web.farme.annotation;


import com.web.farme.redis.*;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Import(RedisAutoConfigRegistrar.class)
public @interface EnableRedis {

    Class<? extends RedisCache> redisCache() default DefautlRedisCache.class;

    Class<? extends RedisSerializer> redisSerializer() default FastJsonRedisSerializer.class;

}
